<?php

namespace Syrius\Exception;

/**
 * @package Exception
 * @author <domenico.biancardi@gmail.com>
 */

class Validation extends \Exception {
    public function __construct($message, $code = "", $previous = "") {
        parent::__construct($message, $this -> getCode(), $this -> getPrevious());
    }

    public function __toString() {
		return $this -> getMessage();
	}
}

/**
 * @package Exception
 * @author <domenico.biancardi@gmail.com>
 */
class Validation_Type extends Validation {
}

?>
